package com.wf.apicommons.entity.chatManagement;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wf.apicommons.entity.userManagement.UserInformation;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Description: 聊天记录表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("t_chat_record")
public class ChatRecord {
    @TableId(value = "id")
    private String ID;
    private UserInformation senderId;
    private String recipientId;
    private String messageContent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss", timezone = "GMT+8")
    @TableField(value = "send_time", fill = FieldFill.INSERT)
    private Date sendTime;
    private Integer readStatus;
    private Integer type;
    private Integer isInitializationContent;
}
